import request from '@/utils/request'

export default {
  getList(currentPage, pageSize, timetableQueryVo) {
    return request({
      url: `/timetable/search/${currentPage}/${pageSize}`,
      method: 'post',
      data: timetableQueryVo
    })
  },

  remove(id){
    return request({
      url: `/timetable/${id}`,
      method: 'delete',
    })
  },

  add(timetable){
    return request({
      url: `/timetable`,
      method: 'post',
      data: timetable
    })
  },

  getById(id){
    return request({
      url: `/timetable/${id}`,
      method: 'get',
    })
  },

  edit(timetable){
    return request({
      url: `/timetable`,
      method: 'put',
      data: timetable
    })
  },

}
